//
//  MessageListModel.swift
//  MT
//
//  Created by ooops on 2019/12/15.
//  Copyright © 2019 张强. All rights reserved.
//

import UIKit
import MTCategory
import ObjectMapper

class MessageListModel: BaseComponentModel {

    var error: String?
    
    var data: [MListModel]?
    
    override func mapping(map: Map) {
        super.mapping(map: map)
        data <- map["data"]
        
    }
}

class MListModel: _Data {
    
    var avator: String?
    
    var name: String?
    
    var desc: String?
    
    /// 类型 : 0 好友申请
    /// 类型 : 1 通过申请
    /// 类型 : 2 好友申请, 被拒绝状态, 送礼物
    var type: Int = -1
    
    var timestamp: Double = 0
    
    override func mapping(map: Map) {
        super.mapping(map: map)
        avator <- map["avator"]
        name <- map["name"]
        desc <- map["desc"]
        type <- map["type"]
        timestamp <- map["timestamp"]
    }
    
    
}
